import java.io.*;
public class IOCalculate extends Calculate {
    public IOCalculate() {
        super();
    }

    public void inFile(String fileName) throws IOException {
        BufferedWriter bf = new BufferedWriter(new FileWriter(fileName));
        for (String i : list) {
            bf.write(i);
            bf.newLine();
        }
        bf.close();
    }
}